package cn.cqie.frame.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author 谢一弘
 * @date 2021/9/3  9:29
 */
@Data
@ApiModel("角色返回实体")
public class PermissionsVo {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "物理id")
    private Long id;

    @ApiModelProperty(required = true, value = "名称")
    private String roleName;
    @ApiModelProperty(value = "0:正常 1:禁用")
    private Integer status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
}
